/*
 * 攀枝花学院二手图书拍卖平台
 * Design by 王伟学
 * Version :1.0
 */
package com.auction.system.domain.dto.auction;

import java.io.Serializable;

import com.auction.system.domain.pojo.auction.OrderComplaintPojo;
import com.auction.system.enums.EnumComplaintType;
import com.auction.system.enums.EnumHandleStatus;
import com.auction.system.utils.StringUtil;
import lombok.Data;
/**
 * order_complaint - 投诉信息表 实体类
 * 
 * @author 软件工程3班-王伟学
 */
@Data
public class OrderComplaint extends OrderComplaintPojo implements Serializable {

    private static final long serialVersionUID = 1L;
	
	public OrderComplaint(){

    }

    public OrderComplaint(Long id){
        this.setId(id);
    }

    private String complaintUserName;

    private String complaintTypeDesc;

    private String handleStatusDesc;

    public String getComplaintTypeDesc(){
        if(StringUtil.isEmpty(getComplaintType())){
            return "";
        }
        return EnumComplaintType.getName(getComplaintType());
    }

    public String getHandleStatusDesc(){
        if(StringUtil.isEmpty(getHandleStatus())){
            return "";
        }
        return EnumHandleStatus.getName(getHandleStatus());
    }
}
